import React, { useEffect } from 'react';
import { Table } from 'antd';

const JobApplication = ({ data }) => {
    const columns = [
        {
            title: '应聘职位',
            dataIndex: 'recruitPost',
            key: 'recruitPost',
            width: 130
        },
        {
            title: '公司',
            dataIndex: 'companyName',
            key: 'companyName',
            width: 150
        },
        {
            title: '添加候选时间',
            dataIndex: 'createTime',
            key: 'createTime',
            width: 130
        },
        {
            title: '阶段',
            dataIndex: 'candidateStageValue',
            key: 'candidateStageValue',
            width: 120
        },
        {
            title: '状态',
            dataIndex: 'candidateStateValue',
            key: 'candidateStateValue',
            width: 100
        },
        {
            title: '招聘负责',
            dataIndex: 'candidateLeaderName',
            key: 'candidateLeaderName',
            width: 100
        }
    ];

    useEffect(() => {}, []);
    return <Table dataSource={data} columns={columns} scroll={{ x: 'max-content' }} rowKey="id" pagination={false} />;
};
export default JobApplication;
